package com.example.demo3.domain.bo;

//import jakarta.validation.constraints.NotBlank;
//import jakarta.validation.constraints.NotEmpty;
//import jakarta.validation.constraints.NotNull;
//import jakarta.validation.constraints.Null;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

//import javax.validation.constraints.NotNull;


@Data
public class UserBo {

//    @NotBlank(message = "id不能为null")
    private  Integer id  ;


//    @NotEmpty(message = "姓名不能为空")
    @Length(min = 1, max = 6, message = "姓名长度必须在1-6之间")
    private String name;

//    @NotNull(message = "年龄不能为null")
    private Integer  age  ;

//    @NotBlank(message = "地址不能为空")
    private String address ;

//    @NotNull(message = "email不能为空")
    private String email ;

}
